package cn.com.surker.dto;

import lombok.Data;


/**
 * 分页参数
 */

@Data
public class PageDTO {

    /**
     *  页码
     */
    private Integer curr = 1;

    /**
     * 每页显示条数
     */
    private Integer limit = 15;

    public Integer getCurrSize(){
       curr =  (curr - 1) * limit;
       curr = (curr + limit) / limit;
       return curr;
    }

    public Integer getOffsetSize(){
        return (curr - 1) * limit;
    }
}
